package com.gf.framework.web.excel;

import com.gf.framework.web.annotation.ExportExcel;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.Type;

/**
 * @author gaofei
 * @date 2022/6/8 21:34
 */
public interface IExportExcel {
    /**
     * 导出方法
     * @param request
     * @param response
     * @param rawType 返回参数类型
     * @param voType 返回参数类型
     * @param result 返回参数类型
     */
    void export(HttpServletRequest request, HttpServletResponse response,  Type rawType, Type voType, Object result, ExportExcel exportExcel) throws IOException;

    /**
     * 导出的数据类型
     * @return
     */
    String getContentType();
}
